package com.zy.thread.saleticket;

/**
 * @Author Gong
 * @Description
 * @dATE 2021/12/14 9:09
 **/
public class TicketDemo {
    public static void main(String[] args) {
        Ticket t= new Ticket();
        for (int i = 0; i < 20; i++) {
            Thread t1 = new Thread(t);
            t1.setName("t"+i+"个人");
            t1.start();
        }

//        Thread t2 = new Thread(t);
//        Thread t3 = new Thread(t);
//
//        t2.setName("t2窗口");
//        t3.setName("t3窗口");
//        t1.start();
//        t2.start();
//        t3.start();

    }
}
